package com.ruoyi.znjc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 规则预警日志对象 znjc_ruleswarnlog
 * 
 * @author ZNJC
 * @date 2025-07-23
 */
public class ZnjcRuleswarnlog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    @Excel(name = "日志ID")
    private Long logId;

    /** 定时器ID */
    @Excel(name = "定时器ID")
    private Long timerId;

    /** 订阅记录ID */
    @Excel(name = "订阅记录ID")
    private Long subId;

    /** 农业规则ID */
    @Excel(name = "农业规则ID")
    private Long ruleId;

    /** 农业规则 */
    @Excel(name = "农业规则")
    private String ruleSnapshot;

    /** 环境快照 */
    @Excel(name = "环境快照")
    private String envSnapshot;

    /** 是否触发预警 */
    @Excel(name = "是否触发预警")
    private String isTriggered;

    /** 模型ID */
    @Excel(name = "模型ID")
    private Long modelId;

    /** 模型建议 */
    @Excel(name = "模型建议")
    private String modelSuggestion;

    /** 发生概率 */
    @Excel(name = "发生概率")
    private Long probability;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setTimerId(Long timerId) 
    {
        this.timerId = timerId;
    }

    public Long getTimerId() 
    {
        return timerId;
    }

    public void setSubId(Long subId) 
    {
        this.subId = subId;
    }

    public Long getSubId() 
    {
        return subId;
    }

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }

    public void setRuleSnapshot(String ruleSnapshot) 
    {
        this.ruleSnapshot = ruleSnapshot;
    }

    public String getRuleSnapshot() 
    {
        return ruleSnapshot;
    }

    public void setEnvSnapshot(String envSnapshot) 
    {
        this.envSnapshot = envSnapshot;
    }

    public String getEnvSnapshot() 
    {
        return envSnapshot;
    }

    public void setIsTriggered(String isTriggered) 
    {
        this.isTriggered = isTriggered;
    }

    public String getIsTriggered() 
    {
        return isTriggered;
    }

    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }

    public void setModelSuggestion(String modelSuggestion) 
    {
        this.modelSuggestion = modelSuggestion;
    }

    public String getModelSuggestion() 
    {
        return modelSuggestion;
    }

    public void setProbability(Long probability) 
    {
        this.probability = probability;
    }

    public Long getProbability() 
    {
        return probability;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("timerId", getTimerId())
            .append("subId", getSubId())
            .append("ruleId", getRuleId())
            .append("ruleSnapshot", getRuleSnapshot())
            .append("envSnapshot", getEnvSnapshot())
            .append("isTriggered", getIsTriggered())
            .append("modelId", getModelId())
            .append("modelSuggestion", getModelSuggestion())
            .append("probability", getProbability())
            .append("createTime", getCreateTime())
            .toString();
    }
}
